package com.qijian.maindata.domain.dto;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.format.DateTimeFormat;
import com.alibaba.excel.annotation.write.style.*;
import com.alibaba.excel.enums.poi.BorderStyleEnum;
import com.alibaba.excel.enums.poi.HorizontalAlignmentEnum;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

@HeadStyle(fillForegroundColor = 22, horizontalAlignment = HorizontalAlignmentEnum.CENTER, borderTop = BorderStyleEnum.THIN,
        borderRight = BorderStyleEnum.THIN, borderLeft = BorderStyleEnum.THIN, borderBottom = BorderStyleEnum.THIN)
@HeadFontStyle(fontHeightInPoints = 15)
@ContentStyle(borderBottom = BorderStyleEnum.THIN, borderLeft = BorderStyleEnum.THIN, borderRight = BorderStyleEnum.THIN, borderTop = BorderStyleEnum.THIN)
@ContentFontStyle(fontHeightInPoints = 15)
@Data
@ColumnWidth(20)
@HeadRowHeight(18)
public class OutSourceStockInDetailExcelDTO {

    @ExcelProperty(value = "序号")
    private Integer index;

    @ExcelProperty(value = "单据编号")
    private String outBoundCode;

    @ExcelProperty(value = "物料名称")
    private String itemName;

    @ExcelProperty(value = "工序")
    private String processName;

    @ExcelProperty(value = "数量")
    private BigDecimal outCheckNumber;

    @ExcelProperty(value = "成本价")
    private BigDecimal workCost;

    //总成本=数量*成本价
    @ExcelProperty(value = "总成本")
    private BigDecimal totalWorkCost;

    @ExcelProperty(value = "供应商")
    private String outSupplierName;

    @ExcelProperty(value = "外协员")
    private String outCreateBy;

    @ExcelProperty(value = "入库时间")
    @DateTimeFormat(value = "yyyy-MM-dd")
    private Date updateTime;

}
